/**
 * BBD Service Inc
 * All Rights Reserved @2018
 */
package com.bbd.merchant.guide.galaxy.core;

import lombok.Getter;
import lombok.Setter;

/**
 *
 *
 * @author tianyuliang
 * @version $Id: CommandDirective.java, v0.1 2018-08-01 14:07 tianyuliang Exp $$
 */
public abstract class CommandDirective<TCommand extends Command> {

    @Setter
    @Getter
    private String   content;

    @Getter
    private TCommand command;

    public CommandDirective(String content) {
        this.content = content;
    }

    protected abstract void validate(String content);

}
